﻿@using GSLMS.WebAPP
@model GSLMS.Entity.TB_APP_PROFILESINFO
@{
    Layout = null;
    var ddlAnnexType = ViewData["AnnexType"] as SelectList;
}
<div class="pageContent">
    <form method="post" action="DianDang/Apply/ProInfo/FilesInfoCreate?OpID=@ViewData["OperateID"]" enctype="multipart/form-data"
    class="pageForm required-validate" onsubmit="return iframeCallback(this,FilesdialogAjaxDone);">
    @Html.ValidationSummary(true)
    <div class="pageFormContent">
        @Html.HiddenFor(model => model.ID)
        @Html.Hidden("proID", Request["proID"])
        @Html.Hidden("FILEFLAG", Request["FILEFLAG"] ?? "10")
        <p>
            <label>
                附件类型：</label>
            @Html.DropDownListFor(model => model.ANNEXTYPE, ddlAnnexType, new { @class = "combox" })
            @Html.ValidationMessageFor(model => model.ANNEXTYPE)
        </p>
        <p style="width: 400px">
            <label>
                附件上传：</label>
            <input name="file1" type="file" />
        </p>
    </div>
    <div class="formBar">
        <ul>
            <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            保存</button></div>
                </div>
            </li>
        </ul>
    </div>
    </form>
</div>
<script>
    function FilesdialogAjaxDone(json) {
        DWZ.ajaxDone(json);
        if (json.statusCode == DWZ.statusCode.ok) {
            RefreshProFilesInfoList();
            RefreshProFilesInfoCreate(0);
        }
    }
</script>
